﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/PopupDiv.master" AutoEventWireup="true" Inherits="Admin_Module_Edit" Title="无标题页" Codebehind="Edit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 80px;
            text-align: right;
            height: 30px;
        }
    </style>

    <script type="text/javascript">
     function SetIcon(imgIcon,strIcon)
     {
        var hidIcon = document.getElementById(strIcon);
        var args = new Array();
        args[0] = imgIcon;
        args[1] = hidIcon;

        var sFeatures = "dialogHeight:150px;dialogWidth:300px;help=no; status=no; scroll=auto; resizable=yes;";
        showCustDlg("ShowIcon.aspx", args, 300, 150);
        //window.showModalDialog("ShowIcon.aspx",args,sFeatures);
     }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlMain" runat="server" Width="100%">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" align="center">
            <tr>
                <td class="style1">
                    <asp:Label ID="Label6" runat="server" Text="上级模块："></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblUpperName" runat="server" Text="Label" Font-Bold="True"></asp:Label><asp:HiddenField
                        ID="UpperID" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: Red">*</span>&nbsp;<asp:Label ID="Label1" runat="server" Text="模块名称："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Name" runat="server" Width="193px" CssClass="txt"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Name"
                        ErrorMessage="请输入模块名" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label3" runat="server" Text="模块&nbsp;URL："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="NavUrl" runat="server" Width="193px" CssClass="txt"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label7" runat="server" Text="模块编码："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Code" runat="server" Width="193px" CssClass="txt"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label2" runat="server" Text="排　　序："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Orders" runat="server" Width="102px" CssClass="txt"></asp:TextBox>&nbsp;
                    <asp:HyperLink ID="lnkIcon" runat="server" NavigateUrl="javascript:;">选择图标</asp:HyperLink>
                    <asp:Image ID="imgIcon" runat="server" ImageUrl="/aa.gif" ImageAlign="AbsMiddle" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Orders"
                        ErrorMessage="数字格式不正确" ValidationExpression="-?\d*" Display="None"></asp:RegularExpressionValidator>
                    <asp:HiddenField ID="IconUrl" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label5" runat="server" Text="备　　注："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Remark" runat="server" Width="193px" CssClass="txt"></asp:TextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
</asp:Content>
